﻿namespace MediatorPattern
{
    /// <summary>
    /// 具體同事類
    /// </summary>
    public class ConcreteColleagueTwo : Colleague
    {
        /// <summary>
        /// 通過構造函數傳遞中介者
        /// </summary>
        /// <param name="_mediator"></param>
        public ConcreteColleagueTwo(Mediator _mediator) : base(_mediator)
        {
        }

        /// <summary>
        /// 自有方法 self-method
        /// </summary>
        public void selfMethodTwo()
        {
            //處理自己的業務邏輯
        }

        /// <summary>
        /// 依賴方法 dep-method
        /// </summary>
        public void depMethodTwo()
        {
            //處理自己的業務邏輯
        }
    }
}